package org.example.aienglishapp.service.article;

import org.example.aienglishapp.entity.article.Translation;

import java.util.List;

public interface TranslationService {
    void addTranslation(Translation translation);
    void updateTranslation(Translation translation);
    void deleteTranslation(Long id);
    void deleteTranslationByArticleId(Long articleId); // 新增方法
    Translation getTranslationById(Long id);
    List<Translation> getAllTranslations();
    Translation translateAndSave(Long articleId);
    Translation getTranslationByArticleId(Long articleId);
}